let userApp=new Vue({
    el:"#userApp",
    data:{
        user:{}
    },
    methods:{
        loadCurrentUser:function(){
            axios({
                url:"/sys/v1/users/me",
                method:"get"
            }).then(function(response){
                console.log(response.data);
                userApp.user=response.data;
            })
        }
    },
    created:function(){
        //页面加载完毕之后自动执行
        this.loadCurrentUser();
    }
})